#include "mywidget.h"
#include "ui_mywidget.h"
#include<QDialog>

myWidget::myWidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::myWidget)
{
    ui->setupUi(this);
    QDialog dialog(this);
    dialog.setWindowTitle("dialog");
    dialog.setFixedSize(200,200);
    dialog.exec();
//    dialog.setModal(true);
//    dialog.show();

}

myWidget::~myWidget()
{
    delete ui;
}
